import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:industry_net/base/common/util.dart';
import 'package:industry_net/base/component/component.dart';
import 'package:industry_net/pages/msg/logistics_list/widgets/cell.dart';

import 'index.dart';

class LogisticsListPage extends GetView<LogisticsListController> {
  const LogisticsListPage({Key? key}) : super(key: key);

  // 内容页
  Widget _buildView() {
    return ListView.separated(
        itemBuilder: (_, index) {
          return LogisticsListCell();
        },
        separatorBuilder: (_, index) {
          return SizedBox(
            height: gap12,
          );
        },
        padding: EdgeInsets.symmetric(vertical: gap12),
        itemCount: 10);
  }

  @override
  Widget build(BuildContext context) {
    return GetBuilder<LogisticsListController>(
      builder: (_) {
        return Scaffold(
          appBar: detailAppBar(context, title: '交易物流'),
          body: SafeArea(
            child: _buildView(),
          ),
        );
      },
    );
  }
}
